-- GENERATED SPELL FOR [Sunseeker Geomancer] --


function spell0_18420(pUnit, Event) --@Arcane Explosion,Self--
pUnit:FullCastSpellOnTarget(35124,pUnit)
pUnit:RegisterEvent('Sorts_18420', 1000, 1)
end

function spell1_18420(pUnit, Event) --@Arcane Explosion,Self--
pUnit:FullCastSpellOnTarget(34170,pUnit)
pUnit:RegisterEvent('Sorts_18420', 1500, 1)
end

function Sorts_18420(pUnit, Event)
local choix_sorts_18420 = math.random(0, 1)
if choix_sorts_18420 == 0 then
pUnit:RegisterEvent('spell0_18420', 1, 1)
end
if choix_sorts_18420 == 1 then
pUnit:RegisterEvent('spell1_18420', 1, 1)
end
end

function mob18420_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18420', math.random(1500, 3000), 1)
end

function mob18420_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18420_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18420_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18420, 1, 'mob18420_Action')
RegisterUnitEvent(18420, 2, 'mob18420_Leave')
RegisterUnitEvent(18420, 3, 'mob18420_Kill')
RegisterUnitEvent(18420, 4, 'mob18420_Die')
